#ifndef TCP_CLIENT_H
#define TCP_CLIENT_H

#include <iostream>
#include <string>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>

#define RTSP_PORT 8554
#define RTP_PORT 12345

class RTSPClient {
   public:
    RTSPClient();
    ~RTSPClient();

    void init(const std::string &ip_address);
    void start();
    void handle_server(int new_socket);

   private:
    int client_fd = -1;
    struct sockaddr_in address;
};

#endif  // TCP_CLIENT_H
